<?php
	
	
	if($_info = $this->getInfo())
	{
		if($order = $_info->getOrder())
		{
			$slip = Mage::getModel('Maxima_BankSlip/slip')->loadByOrder($order);
			$statuses =Mage::getModel('Maxima_BankSlip/slip_status')->toArray();
			
			$htmlSlipLink = Mage::getUrl("bankslip/index/view", array("order" => $order->getIncrementId()));
			
			echo '<a href="' . $htmlSlipLink . '" target="_blank" title="' . $this->__("Click to view") . '">' . $this->__("Bank Slip") . '</a><br /><br />';
			echo $this->__("Current state") . ": " . $this->__($statuses[$slip->getStatus()]);
		}
		else
		{
			echo $this->__("Bank Slip");
		}
	}
	else
	{
		
	}

?>
<br /><br />
